<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
</body>
<script type="text/javascript" src="js/JnPakg.js"></script>
<script type="text/javascript">
(function(){
	dw("05_this的奇怪用法.html[基础测试]");
})();

function Ta(_x,_y){
	this.x = _x;
	this.y = _y;
	this.dwthis = function(){
		for (var i in this){
			dw(i + " : " + this[i])
		}
	}
}


var p = new Ta(1,2);
p.dwthis();
dw("p[\"x\"] : "+ p["x"]);
dw("p[\"y\"] : "+ p["y"]);

p.z = "5";
p["k"] = "7";
p.dwthis()
alert(typeof(Ta));
</script>
</html>